package fr.web325.bean;

import java.util.Date;

public class User {
    private  int id;                // ID
    private  String username;       // 用户名
    private  String PASSWORD;       // 密码
    private  String gender;         // 性别
    private  String email;          // 邮箱
    private  String telephone;      // 电话
    private  String introduce;      // 介绍
    private  String activeCode;     // 激活码
    private  int state;             // 激活状态 1:已激活   2:未激活
    private  String role;           // 角色名称
    private Date registTime;        // 注册时间

    public User() {
    }

    public User(int id, String username, String PASSWORD, String gender, String email, String telephone, String introduce, String activeCode, int state, String role, Date registTime) {
        this.id = id;
        this.username = username;
        this.PASSWORD = PASSWORD;
        this.gender = gender;
        this.email = email;
        this.telephone = telephone;
        this.introduce = introduce;
        this.activeCode = activeCode;
        this.state = state;
        this.role = role;
        this.registTime = registTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPASSWORD() {
        return PASSWORD;
    }

    public void setPASSWORD(String PASSWORD) {
        this.PASSWORD = PASSWORD;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getActiveCode() {
        return activeCode;
    }

    public void setActiveCode(String activeCode) {
        this.activeCode = activeCode;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Date getRegistTime() {
        return registTime;
    }

    public void setRegistTime(Date registTime) {
        this.registTime = registTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", PASSWORD='" + PASSWORD + '\'' +
                ", gender='" + gender + '\'' +
                ", email='" + email + '\'' +
                ", telephone='" + telephone + '\'' +
                ", introduce='" + introduce + '\'' +
                ", activeCode='" + activeCode + '\'' +
                ", state=" + state +
                ", role='" + role + '\'' +
                ", registTime='" + registTime + '\'' +
                '}';
    }
}
